/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package business;

import dal.BankDAL;
import model.Bank;

/**
 *
 * @author khanhanh
 */
public class BankBusiness {
    private BankDAL bankDAL = new BankDAL();

    public Bank getBankDetails(String ccNumber,String pinCode){
        return bankDAL.getBankDetails(ccNumber, pinCode);
    }

    public boolean deposit(String ccNumber, String pinCode, float amount){
        return bankDAL.deposit(ccNumber, pinCode, amount);
    }

    public boolean withdraw(String ccNumber, String pinCode, float amount){
        return bankDAL.withdraw(ccNumber, pinCode, amount);
    }

    public Bank getBankDetailsByCusID(int customerID){
        return bankDAL.getBankDetailsByCusID(customerID);
    }
}
